package com.linfeng.component.common.tools;

import cn.hutool.core.util.StrUtil;
import cn.hutool.crypto.BCUtil;
import cn.hutool.crypto.SecureUtil;
import cn.hutool.crypto.digest.BCrypt;
import cn.hutool.crypto.digest.DigestUtil;
import cn.hutool.crypto.symmetric.SymmetricAlgorithm;

import java.nio.charset.StandardCharsets;

public class PasswordTools {

    // 加密key 16位
    private static final byte[] AES_KEY = "=linfengAES_KEY&".getBytes();

    public static String encode(String password) {

        return DigestUtil.bcrypt(password);
    }
}
